package com.sicau.smart_farmer.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * @author ttxxi
 * @create 2019-11-23
 */
@ToString
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
public class TrainingBatch {

    @ApiModelProperty(value = "id")
    private String id;
    private String batchName;   //批次名称
    private Integer type; //培训类别,1:地方培训 2：国家培训
    @ApiModelProperty(example = "2019-12-12 10:10:10")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date startTime; //开始时间
    @ApiModelProperty(example = "2019-12-12 10:10:10")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date endTime;  //结束时间
    private Integer maxNum;  //最大人数
    private Integer tempNum; // 当前人数
    private String trainingDescription; //批次描述


}
